package com.mkjb.utils;


import java.util.List;

/**
 * 用于实现分页的接口
 */
public interface Pageable<T> {

    public List<T> getList();

    public void setList(List<T> list);

    public int getCurrentPage();

    public void setCurrentPage(int currentPage);

    public int getRowSize();

    public void setRowSize(int rowSize);

    public long getTotalRecord();

    public void setTotalRecord(int totalRecord);

    public int getTotalPage();

    public void setTotalPage(long totalCount);

    public long getStartPosition();

    public boolean isFirst();

    public boolean isLast();

    public int getBeginPageNumber();

    public int getEndPageNumber();
}
